var express = require('express');
var router = express.Router();
let { regist, login } = require("../controller/users")
/* GET users listing. */
// console.log(regist)
router.get('/', function (req, res, next) {
  console.log(req.query)//获取get请求传递的阐述
  res.send('respond with a resource ');
});
// 注册接口
router.post('/regist', regist)

//登入接口
router.post('/login', login)

module.exports = router;
